home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 May
/
EnigmA AMIGA RUN 18 (1997)(G.R. Edizioni)(IT)[!][issue 1997-05][EAR-CD II].iso
/
softwareupdate
/
system
/
amigados
/
filefunctions
/
examples.doc
< prev
next >
Wrap
Text File
|
1996-10-10
|
1KB
|
36 lines
3 FILE FUNCTIONS - EXAMPLES
Example 1
This example demonstrates how to create a directory called
"MyDirectory" on the RAM disk.
Example 2
This example demonstrates how to rename files and
directories. It will rename a file on the Ram disk called
"HighScore.dat" to "Numbers.dat". It will also rename the
directory the previous Example created ("MyDirectory") to
"NewDirectory". (Please run Example 1 in the "Files" chapter
to create the "HighScore.dat" file before you run this
example.)
Example 3
This example demonstrates how to delete files and
directories. It will delete the file and directory which we
renamed in the previous example.
Example 4
This example demonstrates how to attach a comment to a file.
The commend will be attached to a file on the Ram disk called
"HighScore.dat". (Please run Example 1 in the "Files" chapter
to create this file before you run this example.) Too see the
comment you can use the Shell (CLI) command "List". Simply
open a Shell window and type "List Ram:" (without quotations)
Example 5
This example demonstrates how to alter the protection flags
on a file. The file we used in the previous example
"HighScore.dat" will be protected and we will then try to
delete it (unsuccessfully). We will then unprotect the file
and try to delete it again (this time successfully).